﻿using System.Linq;
using AB.ServiceDirectory.Dao;
using AB.ServiceDirectory.Entities;

namespace AB.ServiceDirectory.BO
{
    /// <summary>
    /// CountryBO
    /// </summary>
    public sealed class CountryBO
    {
        /// <summary>
        /// CountryDao object
        /// </summary>
        private static readonly CountryDao Dao = new CountryDao();

        /// <summary>
        /// Prevents a default instance of the <see cref="CountryBO"/> class from being created.
        /// </summary>
        private CountryBO()
        {
        }

        /// <summary>
        /// Selects the countries.
        /// </summary>
        /// <returns></returns>
        public static IQueryable<Country> SelectCountries()
        {
            return Dao.SelectCountries();
        }
    }
}